home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / gcc / libnixV1_0.lha / gnu / libnix-sources.lha / sources / headers / libinit.h < prev    next >
C/C++ Source or Header  |  1995-01-22  |  2KB  |  63 lines

  1. /******************************************************************************/
  2. /*                                                                            */
  3. /* include(s)                                                                 */
  4. /*                                                                            */
  5. /******************************************************************************/
  6.  
  7. #include <exec/libraries.h>
  8.  
  9. /******************************************************************************/
  10. /*                                                                            */
  11. /* structure definition for a *** PRIVATE *** library/device base             */
  12. /*                                                                            */
  13. /******************************************************************************/
  14.  
  15. typedef struct _Library {
  16.   struct Library LibNode;
  17.   UWORD PadWord;
  18.   APTR  SegList;
  19.   APTR  DataSeg;
  20.  
  21. #ifdef EXTENDED
  22.  
  23.   ULONG DataSize;
  24.   struct _Library *Parent;
  25.  
  26. #endif
  27.  
  28. } _LIB;
  29.  
  30. #define DevNode LibNode
  31.  
  32. typedef _LIB _DEV;
  33.  
  34. /******************************************************************************/
  35. /*                                                                            */
  36. /* prototypes for basic library functions                                     */
  37. /*                                                                            */
  38. /******************************************************************************/
  39.  
  40. struct Library *LibInit();
  41. struct Library *LibOpen();
  42. APTR LibClose();
  43. APTR LibExpunge();
  44. APTR LibExtFunc();
  45.  
  46. /******************************************************************************/
  47. /*                                                                            */
  48. /* prototypes for basic device functions                                      */
  49. /*                                                                            */
  50. /******************************************************************************/
  51.  
  52. struct Library *DevInit();
  53. VOID DevOpen();
  54. APTR DevClose();
  55. APTR DevExpunge();
  56. APTR DevExtFunc();
  57.  
  58. /******************************************************************************/
  59. /*                                                                            */
  60. /* end of libinit.h                                                           */
  61. /*                                                                            */
  62. /******************************************************************************/
  63.